package com.example.neartweet;

import android.graphics.drawable.Drawable;

public class TweetItem {
	
	public TweetItem(String username, String tweet) {
		super();
		this.username = username;
		this.tweet = tweet;
	}
	
	public TweetItem(String username, String tweet, Double lat, Double lon) {
		super();
		this.username = username;
		this.tweet = tweet;
		this.lat = lat;
		this.lon = lon;
	}

	private Drawable avatar;

    private String username;

    private String tweet;
    
    private Double lat = null;
    
    private Double lon = null;

    public String getTweet() {
        return tweet;
    }

    public void setTweet(String tweet) {
        this.tweet = tweet;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Drawable getAvatar() {
        return avatar;
    }

    public void setAvatar(Drawable avatar) {
        this.avatar = avatar;
    }

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLon() {
		return lon;
	}

	public void setLon(Double lon) {
		this.lon = lon;
	}
	
	public boolean hasLocation() {
		return ((lon != null) && (lat != null));
	}
}
